//package com.touchfired.common.event.handler.impl;
//
//import com.touchfired.common.constants.ClientInfo;
//import com.touchfired.common.constants.EventCode;
//import com.touchfired.common.context.ServerContext;
//import com.touchfired.common.message.BaseMessage;
//import com.touchfired.common.message.transfer.MessageConsoler;
//import io.netty.channel.Channel;
//import io.netty.channel.ChannelHandlerContext;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
///**
// * @Description 连接中事件码处理器
// * @Author 幸佳俊
// */
//@Component
//public class EventCodeConnectingHandler extends BaseEventCodeHandler {
//
//    @Autowired
//    private ServerContext serverContext;
//
//    public EventCodeConnectingHandler() {
//        super(EventCode.CLIENT_CONNECTING);
//    }
//
//    @Override
//    public EventCodeHandler doHandle(ChannelHandlerContext ctx, ClientInfo clientInfo, BaseMessage message) throws Exception {
//        Channel channel = ctx.channel();
////        ServerContext.addClientInfo(channel);
//        clientInfo = serverContext.getClientInfo(ctx.channel().id().asLongText());
//        clientInfo.appendEventNode(EventCode.valueOf(message.getToCode()));
//        MessageConsoler.info(channel.remoteAddress().toString() + "连接中...");
//        return null;
//    }
//}
